﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Exhibition.Dao.ViewModel;
using Exhibition.Service;

namespace Exhibition
{
    public partial class NewsDetail : BasePage
    {
        public ContentModel mdl = new ContentModel();

        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (!IsPostBack) {
                GetNews();
            }
        }

        private void GetNews()
        {
            mdl= CenterService.contentService.GetOneById(reqID);
            if (mdl != null) {
                Page.Title = mdl.Title;

            }
        }
    }
}